package com.easylinkin.linkappapi.asset.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easylinkin.linkappapi.asset.entity.AdeviceVo;
import com.easylinkin.linkappapi.asset.entity.Asset;
import com.easylinkin.linkappapi.asset.entity.UserVo;
import com.easylinkin.linkappapi.device.entity.Device;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 设备资产表，关联两张表 关联1  资产表-资产设备表 关联2  资产表-资产用户表 服务类
 * </p>
 *
 * @author XuGuoQing
 * @since 2020-04-15
 */
public interface AssetService extends IService<Asset> {

    boolean updateLinkappAsset(Asset asset);

    boolean addLinkappAsset(Asset asset);

    boolean deleteLinkappAsset(List<Asset> assetList);

    IPage<Asset> getPage(IPage page, Asset asset);

    Asset queryLinkappAssetById(Asset asset);

    IPage<Device> getDvicePageByAssetId(IPage page, AdeviceVo customQueryParams);


    IPage<Device> getUnCoonectDvicePageByAssetId(IPage page, AdeviceVo customQueryParams);

    List<Device> getDviceByAssetId(AdeviceVo customQueryParams);

    List<UserVo> queryManager();

    Map<String, Integer> queryDayAndMonthCreates();
}
